home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 03 - 1987 / 03.11 Nov 87 / C string library / PStrLib Source / PStrRep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-10-21  |  246 b   |  11 lines  |  [TEXT/KAHL]

  1. /*    FILE:    PStrRep.c
  2.     Replaces count chars from pos of dst with src. */
  3. #include    "PStrLib.h"
  4.  
  5. PStrRep(dst, pos, len, src)     
  6. register char    *dst, *src;    /* pascal strings */
  7. register int    pos, len;
  8. {    
  9.     PStrDel(dst, pos, len);
  10.     PStrIns(src, dst, pos);
  11. }